define(['vue'],
  function (Vue) {
    function render() {
      new Vue({
        el: '#tmzk_test',
        methods: {
          changeFile(file) {
            console.log(file)
          },
          async upload() {
            const file = await this.$XReadFile({ 
              multiple: true,
              types: ['xlsx', 'html']
            })
            console.log(file)
          },
          saveFile(){
            this.$XSaveFile({
              filename: '文本',
              type: 'txt',
              content: '内容xxx'
            })
          }
        }
      })
    }
    return {
      init: render
    }
  })